// [[ OnflowGenerator File UUID: ce460c7590344843a57276b36718b782  ]]
package com.itdct.onflow.system.api.qo

import com.itdct.onflow.core.qo.BaseQo
import com.itdct.onflow.core.type.Add
import com.itdct.onflow.core.type.Update
import io.swagger.v3.oas.annotations.media.Schema
import jakarta.validation.constraints.NotBlank
import jakarta.validation.constraints.NotNull
import org.hibernate.validator.constraints.Length

/**
 * @author DCTANT
 * @date 2025-09-01 15:08:45
 * @version 1.0
 * @description 系统接口编辑入参
 */
@Schema(name = "系统接口编辑入参", description = "系统接口编辑入参")
class SysApiEditQo : BaseQo() {
    // [[ OnflowGenerator Range (- fields -) Start ]]
    @Schema(title = "平台类型", example = "")
    @NotBlank(message = "请输入平台类型", groups = [Add::class, Update::class])
    @Length(max = 64, message = "平台类型不能超过64个字符", groups = [Add::class, Update::class])
    var platformType: String? = null

    @Schema(title = "接口名称", example = "")
    @NotBlank(message = "请输入接口名称", groups = [Add::class, Update::class])
    @Length(max = 200, message = "接口名称不能超过200个字符", groups = [Add::class, Update::class])
    var name: String? = null

    @Schema(title = "接口地址", example = "")
    @NotBlank(message = "请输入接口地址", groups = [Add::class, Update::class])
    @Length(max = 200, message = "接口地址不能超过200个字符", groups = [Add::class, Update::class])
    var url: String? = null

    @Schema(title = "接口控制类型", example = "")
    @NotNull(message = "请输入接口控制类型", groups = [Add::class, Update::class])
    var controlType: Int? = null

    @Schema(title = "请求方式", example = "")
    @NotBlank(message = "请输入请求方式", groups = [Add::class, Update::class])
    @Length(max = 10, message = "请求方式不能超过10个字符", groups = [Add::class, Update::class])
    var method: String? = null

    @Schema(title = "所属模块", example = "")
    @NotBlank(message = "请输入所属模块", groups = [Add::class, Update::class])
    @Length(max = 100, message = "所属模块不能超过100个字符", groups = [Add::class, Update::class])
    var moduleName: String? = null

    @Schema(title = "是否启用", example = "")
    @NotNull(message = "请输入是否启用", groups = [Add::class, Update::class])
    var enable: Boolean? = null

    @Schema(title = "备注", example = "")
    @Length(max = 500, message = "备注不能超过500个字符", groups = [Add::class, Update::class])
    var remark: String? = null

// [[ OnflowGenerator Range (- fields -) End ]]
}